const tokenKey = 'milkFrontToken'
const uidkey = 'milkFrontUserid'

export const getToken = () => {
  const token = localStorage.getItem(tokenKey)
  return token;
}
export const setToken = (token) => {
  localStorage.setItem(tokenKey, token)
}
export const removeToken = () => {
  localStorage.removeItem(tokenKey)
}
export const getUserId = () => {
  const userId = localStorage.getItem(uidkey)
  return userId;
}
export const setUserId = (uid) => {
  localStorage.setItem(uidkey, uid)
}
export const removeUserId = () => {
  localStorage.removeItem(uidkey)
}
